﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ManageRole.aspx.cs" Inherits="HRProject.Department.ManageRole" MasterPageFile="~/Front2.Master" %>
<asp:Content ID="IncludePlaceHolder" ContentPlaceHolderID="IncludePlaceHolder" runat="server">
    <link type="text/css" href="/css/tree.css" />
    <script type="text/javascript" language="javascript" src="/js/tree.js"></script>
    <script type="text/javascript" language="javascript" src="/js/role.js"></script>
</asp:Content>
<asp:Content ID="TitleIconPlaceHolder" ContentPlaceHolderID="TitleIconPlaceHolder" runat="server">
    <img src="/image/layout/icon/RoleIcon.png" alt="" />
</asp:Content>
<asp:Content ID="TitleNamePlaceHolder" ContentPlaceHolderID="TitleNamePlaceHolder" runat="server">
    Roles 
</asp:Content>
<asp:Content ID="LeftPanelPlaceHolder" ContentPlaceHolderID="LeftPanelPlaceHolder" runat="server">
    <div onmouseover="treeNodeMove(this);" onmouseout="treeNodeOut(this);"
        style="float:left">
        <div style="float:left">Role name</div>
        <div class="actionbar" style="top:0px;">
            <div class="item add" onclick="addRole();"></div>
        </div>
    </div>
    <%
    foreach (HRProject.Code.DTO.BLRole role in LstRoles)
    {
    %>
        <div style="float:left;clear:both" onmouseover="treeNodeMove(this);"
            onmouseout="treeNodeOut(this);">
            <div style="float:left;">
                <a href="javascript:void(0)" style="text-decoration:none;" onclick="viewRole(this);">
                    <img src="<%= role.IconUrl %>" style='width:20px;height:20px;'/>
                    <%= role.Name %>
                </a>
            </div>
            <div class="actionbar" style="top:0px;">
                <div class="item edit" onclick="editRole(this);"></div>
                <div class="item remove" onclick="removeRole(this);"></div>
                <input type="hidden" name="id" value="<%= role.Id %>"/>
            </div>
        </div>
    <%
    }
    %>
</asp:Content>
<asp:Content ID="RightPanelPlaceHolder" ContentPlaceHolderID="RightPanelPlaceHolder" runat="server">
    <iframe id="detailFrame" class="frame">
    </iframe>
</asp:Content>